package com.linwen.excise.niuke._40;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

/**
 * @author wlw
 * @date 2023/3/5 4:57 PM
 */
public class _26字符串排序 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        char[] chars = str.toCharArray();
        List<Character> lists = new ArrayList<>();
        for (char aChar : chars) {
            if((aChar>='A'&&aChar<='Z')||(aChar>='a'&&aChar<='z')){
                lists.add(aChar);
            }
        }
        lists.sort(new Comparator<Character>() {
            @Override
            public int compare(Character o1, Character o2) {
                Character o1Temp = o1;
                Character o2Temp = o2;
                if(o1Temp>='A'&&o1Temp<='Z'){
                    o1Temp = (char) (o1Temp+32);
                }
                if(o2Temp>='A'&&o2Temp<='Z'){
                    o2Temp = (char) (o2Temp+32);
                }
                return o1Temp-o2Temp;
            }
        });
        // System.out.println(lists);
        int index = 0;
        for (char aChar : chars) {
            if((aChar>='A'&&aChar<='Z')||(aChar>='a'&&aChar<='z')){
                System.out.print(lists.get(index++));
                continue;
            }
            System.out.print(aChar);
        }

    }
}
